// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import less from 'less'
import './assets/font/iconfont.css'
import store from './store/index.js'
import http from './js/request.js'
import api from './js/api.js'
Vue.use(less);

import Header from './components/common/header.vue'

import Vant from 'vant';
import 'vant/lib/index.css';

Vue.prototype.$http = http
Vue.prototype.$api = api
Vue.use(Vant);
Vue.component('Header',Header)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,//新加的
  components: { App },
  template: '<App/>'
})
